Skip to content

fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] - #1366

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-hono-oauth-providers-vulnerability
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-hono-oauth-providers-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@hono/oauth-providers (source) ^0.6.2 → ^0.9.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


@​hono/oauth-providers: OAuth state check fails open on omitted state, enabling login CSRF and forced account linking

CVE-2026-81888 / GHSA-fm3f-ch8h-qw8q

More information

Details

Summary

The built-in social login providers accept an OAuth callback even when the state value is absent on both sides, so the anti-CSRF check passes for a callback that never came from a genuine login attempt. This defeats the state-based CSRF protection under default usage.

Details

The state check treated two absent values as a match, so a callback that omits state — and for which no state was ever stored — was allowed to redeem the authorization code. Hono's csrf() middleware does not help: it only inspects form-style requests, while the OAuth callback is a top-level GET navigation it treats as safe.

This affects the google, github, facebook, discord, twitch, linkedin, and msentra providers. The x (Twitter) provider is not exploitable due to its PKCE binding.

Impact

An attacker can make a victim's browser complete an OAuth callback that binds the attacker's identity instead of the victim's, leading to login CSRF (the victim silently acts inside the attacker's account) or forced account linking (the attacker's identity is linked to the victim's account, enabling later sign-in as the victim). Affects applications using an affected provider on @hono/oauth-providers 0.8.5 or earlier.

Severity

  • CVSS Score: 5.4 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

honojs/middleware (@​hono/oauth-providers)

v0.9.1

Compare Source

Patch Changes
  • #​2223 fea6fc2 Thanks @​yusukebe! - Reject an X callback without state, and set the state and code-verifier cookies with Secure and SameSite=Lax, matching the other providers

v0.9.0

Compare Source

Minor Changes
  • #​2076 9e300a1df947c3abf34605292cce85f665dbcaf6 Thanks @​smellman! - Add an OpenStreetMap OAuth 2.0 provider, available as @hono/oauth-providers/openstreetmap. The
    flow always uses PKCE with the S256 challenge method, and revokeToken is exported to invalidate
    tokens, which OpenStreetMap never expires on its own.

v0.8.8

Compare Source

Patch Changes
  • #​2092 952bb5b871d4291e203b6f9faeb57325b265d57f Thanks @​DanMat! - Update X (Twitter) OAuth types to match the current API: add the users.email, dm.read, dm.write and media.write scopes, and the newer user.fields (e.g. confirmed_email, is_identity_verified, subscription, verified_followers_count). The corresponding properties are also added to the XUser response type. These were previously missing, so requesting them required casting around the types.

v0.8.7

Compare Source

Patch Changes

v0.8.6

Compare Source

Patch Changes

v0.8.5

Compare Source

Patch Changes
  • #​1404 fce74aeda2958faa4d0ed17dfcfe7cbbb74287fa Thanks @​sushichan044! - fix: enable CSRF protection for MSEntra ID authentication

    Fixed a bug where the state parameter was not being passed to the MSEntra AuthFlow constructor. As a result, CSRF protection now properly works for MSEntra ID authentication, ensuring that authentication requests are protected against Cross-Site Request Forgery attacks.

v0.8.4

Compare Source

Patch Changes

v0.8.3

Compare Source

Patch Changes

v0.8.2

Compare Source

Patch Changes

v0.8.1

Compare Source

Patch Changes

v0.8.0

Compare Source

Minor Changes

v0.7.1

Compare Source

Patch Changes

v0.7.0

Compare Source

Minor Changes
  • #​981 e5f383787c2bd47657f67a99074515eab969963b Thanks @​Younis-Ahmed! - These chages introduces a Twitch OAuth provider, expanding the middleware's OAuth offerings. It includes a new middleware for Twitch authentication, a dedicated AuthFlow class, token refreshing/revocation/validation, and comprehensive type definitions. Detailed tests ensure correct behavior and error handling.
    • Twitch OAuth Middleware src/providers/twitch/twitchAuth.ts: Implements the core authentication flow, handling state management, redirects, and context variable setting (token, refresh-token, user-twitch, granted-scopes).

    • AuthFlow Class src/providers/twitch/authFlow.ts: Encapsulates token exchange and user data retrieval, with robust error handling.

    • Token Operations src/providers/twitch/refreshToken.ts: Provides functions for refreshing and revoking tokens.

    • Type Definitions `src/providers/twitch/types.ts: Defines comprehensive types for Twitch API responses.

    • Extensive Testing (test/handlers.ts, test/index.test.ts): Includes unit tests covering redirection, valid code flow, error handling, refresh/revoke token, custom and built-in state scenarios, using a mock server.

    • Validate Token src/providers/twitch/validateToken: That hit /validate endpoint to verify that the access token is still valid for reasons other than token expiring.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from af867d9 to a2ee70a Compare September 2, 2026 19:03
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 2, 2026
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 3, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch 2 times, most recently from b38e1d7 to 7b4eb34 Compare September 3, 2026 13:28
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 3, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 7b4eb34 to 294d20b Compare September 4, 2026 05:07
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 4, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 294d20b to 89fb20a Compare September 7, 2026 18:05
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 7, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 89fb20a to 9fede42 Compare September 8, 2026 01:16
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 8, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 9fede42 to fc34911 Compare September 8, 2026 22:45
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 8, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from fc34911 to 7942dbb Compare September 9, 2026 01:16
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 9, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 7942dbb to c901cb4 Compare September 9, 2026 21:09
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 9, 2026
@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 77fd3062-4144-42f4-b149-4cbb23a42158

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from c901cb4 to f911b0e Compare September 10, 2026 03:47
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 10, 2026
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 10, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from f911b0e to 6837601 Compare September 10, 2026 23:27
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 15, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 17d74c5 to 6905506 Compare September 16, 2026 00:51
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 6905506 to b492774 Compare September 16, 2026 10:38
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from b492774 to b7052d8 Compare September 16, 2026 22:52
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from b7052d8 to ed44d08 Compare September 17, 2026 20:39
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from ed44d08 to 34dfb24 Compare September 18, 2026 01:49
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 18, 2026
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 18, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch 2 times, most recently from 72d6cb9 to 6af107f Compare September 19, 2026 02:52
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 19, 2026
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Sep 24, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 6af107f to e4e28ba Compare September 24, 2026 01:30
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Sep 25, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch 2 times, most recently from 0e0180e to 4f6be1b Compare October 1, 2026 08:59
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Oct 1, 2026
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Oct 1, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 4f6be1b to 05896ec Compare October 1, 2026 18:36
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Oct 5, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from 05896ec to e7e9e30 Compare October 5, 2026 17:04
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] Oct 5, 2026
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from e7e9e30 to edd5560 Compare October 5, 2026 22:48
@renovate
renovate Bot force-pushed the renovate/npm-hono-oauth-providers-vulnerability branch from edd5560 to b717b44 Compare October 13, 2026 16:55
@renovate renovate Bot changed the title fix(deps): update dependency @hono/oauth-providers to ^0.8.6 [security] fix(deps): update dependency @hono/oauth-providers to ^0.9.0 [security] Oct 13, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants